home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / rbbs_pc / mapl0301.zip / VU_FILE.BAT < prev    next >
DOS Batch File  |  1993-03-01  |  985b  |  52 lines

  1. Rem Parameters passed from RBBS
  2. Rem Create a file Called NOVIEW.? (? = Node number) if you do NOT wish to
  3. Rem allow viewing of a certain file extension or do NOT support it
  4. Rem this file is created in the subdir were Command.Com can be located
  5.  
  6. Rem %1 = complete Drive/subdir/filename to view 
  7. Rem %2 = name of ArcWorkFile (ARCWORK?.DEF)
  8. Rem %3 = Comport in use 
  9. Rem %4 = Extension to View
  10. Rem %5 = NodeId
  11.  
  12. @Echo OFF
  13.  
  14. IF %4 == ZIP GOTO ZIP
  15. If %4 == ARJ GOTO ARJ
  16. IF %4 == ARC GOTO ARC
  17. IF %4 == PAK GOTO PAK
  18. IF %4 == ZOO GOTO ZOO
  19. IF %4 == LZH GOTO LZH
  20.  
  21. rem Create the NoView file incase we missed something up above
  22. echo ...>C:\NOVIEW.%5
  23. GOTO EXIT
  24.  
  25. :ZIP
  26. FV138 %1 /b /c > %2
  27. GOTO EXIT
  28.  
  29. :ARJ
  30. REM use ARJ if you do NOT have AV available for older version of ARJ
  31. AV %1 > %2
  32. GOTO EXIT
  33.  
  34. :ARC
  35. arcview %1 > %2
  36. GOTO EXIT
  37.  
  38. :PAK
  39. echo ... >C:\NOVIEW.%5
  40. GOTO EXIT
  41.  
  42. :ZOO 
  43. arcview %1 > %2
  44. GOTO EXIT
  45.  
  46. :LZH
  47. FV138 %1 /b /c > %2
  48. GOTO EXIT
  49.  
  50.  
  51. :EXIT
  52. Echo On